home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / earcd / utils / sysinspector / install < prev    next >
Text File  |  1998-02-12  |  4KB  |  194 lines

  1. ; SI Installer Script
  2. ; $Ver: v1.4 (08-Feb-98)
  3. ; Written by Phil Vedovatti
  4.  
  5. (set @default-dest "Sys:Utilities")
  6.  
  7. (set #bad-kick
  8.    (cat "\n\nSorry! You must have Workbench 3.0 or"
  9.         "\nhigher to to use this package."
  10.         "\n\nAborting Installation!"))
  11.  
  12.  
  13. (set #no-classact
  14.    (cat "\nHmmm!  You don't seem to have the ClassAct 2.0"
  15.         "\nGUI system installed.  You can obtain the"
  16.         "\nlatest ClassAct classes via ftp on the"
  17.         "\nInternet at: \n\n ftp.thule.no/pub/classact/"
  18.         "\n\nDo you wish to continue installation?"))
  19.  
  20. (set #Help-ContInstall
  21.    (cat "\nThis package requires ClassAct 2.0, which does not"
  22.         "\nappear to be installed on your system.  Select"
  23.         "\n'Continue' to intall the program anyway, or select"
  24.         "\n'Abort' to end the installation."))
  25.  
  26. (set #hello-message
  27.    (cat "Welcome to the SysInspector Installation Utility."
  28.         "\n\nThis product is © 1997 by Eric Sauvageau."
  29.         "\n\nPlease support Amiga shareware authors with your contribution."))
  30.  
  31. (set #SI-dest
  32.    (cat "Where would you like SysInspector program to be"
  33.         "\ninstalled?  A directory will NOT be created during"
  34.         "\nthe installation."))
  35.  
  36. (set #AR-dest
  37.    (cat "Where do you want to copy the ARexx scripts?"
  38.         "\nThe default directory is REXX:."))
  39.  
  40. (set #DC-dest
  41.    (cat "Where would you like SysInspector documentation to be"
  42.         "\ninstalled?  The default directory is Help:.  You may"
  43.         "\nselect a different destination if you wish."))
  44.  
  45. (set #BL-dest
  46.    (cat "Where would you like the boards.library to be"
  47.         "\ninstalled?  The default directory is LIBS:, which"
  48.         "\nshould be appropriate for most users."))
  49.  
  50. (set #EC-dest
  51.    (cat "Where would you like the Explorer program installed?"
  52.         "\nDefault is your C: directory, but you can place it"
  53.         "\nanywhere in your command path if you wish."))
  54.  
  55. (set #Install-Complete
  56.    (cat "\n\nPlease read the documentation carefully to get"
  57.         "\nthe most out of SysInspector.  SysInspector is a"
  58.         "\npowerful and useful tool, but be sure you know"
  59.         "\nhow to use it to prevent loss of data."))
  60.  
  61. (set #wrongversion
  62. (cat "You have an old version of the program 'Installer' "
  63.      "on your Amiga!\n\nThe installation procedure needs at least Installer 42.9.\n\n"
  64.      "Please check your configuration!"
  65. ))
  66.  
  67. (welcome #hello-message)
  68.  
  69.  
  70. ; ------------------------------
  71. ; Check Installer & Kickstart Version
  72. ; ------------------------------
  73.  
  74. (if (< @installer-version 2752521)
  75.   (
  76.     (message #wrongversion)
  77.     (exit (quiet))
  78.   )
  79. )
  80.  
  81. (if (< (getversion) (* 39 65536))
  82.         (abort #bad-kick)
  83. )
  84.  
  85. ; ------------------------------
  86. ; Check if ClassAct 2.0 installed
  87. ; ------------------------------
  88.  
  89. (if (< (getversion "libs:window.class") (* 42 65536))
  90.    (set ContInstall
  91.              (askbool
  92.                 (prompt #no-classact)
  93.                 (help #Help-ContInstall)
  94.                 (default 0)
  95.                 (choices "Continue Installation" "Abort Installation")
  96.              )
  97.    )
  98. )
  99.  
  100. (if (= ContInstall 1)
  101.         (abort "\nInstallation Aborted!")
  102. )
  103.  
  104. ; ------------------------------
  105. ; Get destinations
  106. ; ------------------------------
  107.  
  108. (set destdir-SI
  109.    (askdir
  110.          (prompt #SI-dest)
  111.          (help @askdir-help)
  112.          (default "Sys:Utilities")
  113.    )
  114. )
  115.  
  116. (set destdir-DC
  117.    (askdir
  118.          (prompt #DC-dest)
  119.          (help @askdir-help)
  120.          (default "Help:")
  121.    )
  122. )
  123.  
  124. (set destdir-BL
  125.    (askdir
  126.          (prompt #BL-dest)
  127.          (help @askdir-help)
  128.          (default "Libs:")
  129.    )
  130. )
  131.  
  132. (set destdir-AR
  133.    (askdir
  134.          (prompt #AR-dest)
  135.          (help @askdir-help)
  136.          (default "REXX:")
  137.    )
  138. )
  139.  
  140. (set destdir-EC
  141.    (askdir
  142.          (prompt #EC-dest)
  143.          (help @askdir-help)
  144.          (default "C:")
  145.    )
  146. )
  147.  
  148. ; ------------------------------
  149. ; Installation
  150. ; ------------------------------
  151.  
  152. (copyfiles
  153.    (source "SysInspector")
  154.    (dest destdir-SI)
  155.    (infos)
  156. )
  157.  
  158. (copyfiles
  159.    (source "ARexx/")
  160.    (dest destdir-AR)
  161.    (infos)
  162.    (all)
  163. )
  164.  
  165. (copyfiles
  166.    (source "SysInspector.guide")
  167.    (dest destdir-DC)
  168.    (infos)
  169. )
  170.  
  171.  
  172. (copylib
  173.    (source "libs/boards.library")
  174.    (dest destdir-BL)
  175. )
  176.  
  177. (copyfiles
  178.    (source "c/Explorer")
  179.    (dest destdir-EC)
  180. )
  181.  
  182. (copyfiles
  183.    (source "s/explorer.config")
  184.    (dest "S:")
  185. )
  186.  
  187. ; ------------------------------
  188. ; Finishing up
  189. ; ------------------------------
  190.  
  191. ; (run "run >NIL: sys:utilities/multiview CHANGES")
  192. (message #Install-Complete)
  193. (exit)
  194.